﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using nTribeHR;


namespace nTribeHRTests
{
    [TestClass]
    public class UnitTest1 : BaseTribeHRUnitTest
    {
        protected TribeHRLeaveRequestService Service { get; set; }

        [TestInitialize]
        public override void Initialize()
        {
            base.Initialize();
            Service = new TribeHRLeaveRequestService(TribeHRConnection);
        }

        [TestMethod]
        public void CanGetLeaveRequestById()
        {
            LeaveRequest leaveRequest = Service.GetLeaveRequestById(48);

            // Todo. Add asserts
        }

        [TestMethod]
        public void CanGetPendingLeaveRequests()
        {
            List<LeaveRequest> leaveRequests = Service.ListPendingLeaveRequests();

            // Todo. Add asserts
        }

        [TestMethod]
        public void CanGetApprovedLeaveRequests()
        {
            List<LeaveRequest> leaveRequests = Service.ListApprovedLeaveRequests();

            // Todo. Add asserts
        }

        [TestMethod]
        public void CanGetAllLeaveRequests()
        {
            List<LeaveRequest> leaveRequests = Service.ListAllLeaveRequests();

            // Todo. Add asserts
        }

        [TestMethod]
        public void CanAddNewLeaveRequest()
        {
            Service.AddNewLeaveRequest();

            // Todo. Add asserts
        }
    }
}
